//
//  ICMAppearanceCheckView.h
//  ICrEAM
//
//  Created by rainimute on 16/10/26.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMTitleTextView.h"
@class ICMPictureModel;
@class ICMCheckAppearanceTopModel;
@class ICMCheckAppearanceDownModel;

@protocol ICMAppearanceCheckViewDelegate <NSObject>

@optional
- (void)appearanceCheckViewAppearanceImageButtonAction;
- (void)appearanceCheckViewInnerImageButtonAction;

@end

@interface ICMAppearanceCheckView : UIView

//model数据交互
@property (nonatomic, strong) NSMutableArray *picModels;

@property (nonatomic, weak) id<ICMAppearanceCheckViewDelegate>delegate;

@property (nonatomic, strong) ICMTitleTextView *belongingsTextView;
@property (nonatomic, strong) ICMTitleTextView *explainTextView;

@property (nonatomic, strong) NSMutableArray *appearancePoints;

@property (nonatomic, strong) NSMutableArray *appearanceImages;

@property (nonatomic, strong) NSMutableArray *appearanceUrls;

@property (nonatomic, strong) NSString *appearanceImage;

@property (nonatomic, strong) NSMutableArray *innerPoints;

@property (nonatomic, strong) NSMutableArray *innerImages;

@property (nonatomic, strong) NSMutableArray *innerUrls;

@property (nonatomic, strong) NSString *innerImage;

- (instancetype)initAppearanceCheckViewWithFrame:(CGRect)frame andIsfromPreview:(BOOL)isFromPreview;

+ (instancetype)createAppearanceCheckViewWithFrame:(CGRect)frame andIsfromPreview:(BOOL)isFromPreview;

- (void)refreshAppearanceCollectionView;

- (void)refreshInnerCollectionView;

- (UIImage *)getImageWithType:(NSInteger)type;

//controller调用，设置models
- (void)setupAppearancePicModelsWithDic:(NSDictionary*)dic;

//编辑时候调用
- (void)setupAppearanceCheckViewWithCheckAppearanceDownModel:(ICMCheckAppearanceDownModel*)checkAppearanceDownModel;

@end










